home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 September (IDG) / Sep99.iso / Serious Software / POV-Ray 3.1 / Scenes / objects / crat_dat.pov < prev    next >
Encoding:
Text File  |  1998-02-14  |  982 b   |  46 lines  |  [TEXT/POV3]

  1. // Persistence Of Vision raytracer version 3.1 sample file.
  2. // Render this file to create CRAT_DAT.TGA and then render CRATER.POV
  3. // Use special 16-bit gray output
  4.  
  5. global_settings { assumed_gamma 2.2 hf_gray_16 }
  6.  
  7. #include "colors.inc"
  8.  
  9. // a wrinkle colored plane
  10.  
  11. plane {z,10 
  12.  hollow on
  13.  pigment{wrinkles
  14.   color_map{
  15.    [0 White*0.3]
  16.    [1 White]
  17.   }
  18.  }
  19. }
  20.  
  21. // Main spotlight creates crater mountain
  22. light_source {0 color 1  spotlight point_at z*10
  23.   radius 7 falloff 11
  24. }
  25.  
  26. // Dim spotlight softens outer edges further
  27. light_source {0 color .25  spotlight point_at z*10
  28.   radius 2 falloff 15
  29. }
  30.  
  31. // Narrow spotlight creates central peak
  32. light_source {0 color .1  spotlight point_at z*10
  33.   radius 0 falloff 1.3
  34. }
  35.  
  36. // Negative spotlight cuts out crater insides
  37. light_source {0 color -0.9  spotlight point_at z*10
  38.   radius 5 falloff 9.5
  39. }
  40.  
  41. // Dim negative spotlight counteracts dim positive light in center
  42. light_source {0 color -.25  spotlight point_at z*10
  43.   radius 3 falloff 8
  44. }
  45.  
  46.